Imo 2024 Problem 1